//
//  UIBarButtonItem+Action.h
//  JQKit
//
//  Created by JQZ on 2017/11/24.
//  Copyright © 2017年 JQZ. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^BarButtonActionBlock)(void);

@interface UIBarButtonItem (Action)

+ (id)fixItemSpace:(CGFloat)space;

- (id)initWithTitle:(NSString *)title style:(UIBarButtonItemStyle)style actionBlick:(BarButtonActionBlock)actionBlock;

- (id)initWithImage:(UIImage *)image style:(UIBarButtonItemStyle)style actionBlick:(BarButtonActionBlock)actionBlock;

- (id)initWithBackTitle:(NSString *)title actionBlick:(BarButtonActionBlock)actionBlock;

- (void)setActionBlock:(BarButtonActionBlock)actionBlock;

@end
